﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="[tblName]Edit.aspx.cs" Inherits="Web.Admin.test.[tblName]Edit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="/css/style.css" />
<title>[tblTitle]</title>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/js/WdatePicker.js"></script>
<script src="/js/formValidator_min.js" type="text/javascript"  charset="UTF-8"></script>
<script src="/js/formValidatorRegex.js" type="text/javascript"  charset="UTF-8"></script>
<script type="text/javascript" src="/js/layer/layer.js"></script>
</head>
<body>
    <form id="form1" runat="server"  >

	<div class="main">
    <div class="formtitle"><span>[tblTitle]</span></div>

		<table class="tblForm">
		    <tbody>
[loop start]
					<tr>
						<td  class="tdFormLeft"><label><em>* </em>[fldTitle]：</label></td>
					    <td>
              <asp:TextBox ID="txt[fldName]" runat="server" placeholder="[fldTitle]" ></asp:TextBox>
						</td>
		            </tr>
[loop end]

		    </tbody>
		</table>

        <div class="btnDiv">
		        <asp:TextBox ID="txtid" runat="server" style="display:none" Text="0"></asp:TextBox>
                 <asp:Button ID="btnSumit"  CssClass="btn" runat="server" Text=" 发布 "  OnClick="btnSumit_Click"  />

        </div>

	</div>


    </form>
</body>
<script type="text/javascript">
    showRemind('input[type=text], textarea', 'placeholder');
</script>
<script language="JavaScript" type="text/javascript">
    $(document).ready(function () {
        $.formValidator.initConfig({ alertMessage: true, onError: function (msg) { alert(msg) } });
[loop start]
         $("#txt[fldName]").formValidator().InputValidator({ min: 1, onerror: "[fldTitle]不能为空。" });
[loop end]
    });
    $('#form1').submit(function (e) {
        return jQuery.formValidator.PageIsValid('1');
    });
</script>
</html>




